﻿using System;
using System.Windows.Input;
using SMF.HowTo.Shared.Commands;

namespace SMF.HowTo.Model
{
    public class VideoInfo
    {
        public VideoInfo()
        {
            SelectedCommand = new DelegateCommand(i => NotifySelected());
        }

        public string Description { get; set; }
        public string Name { get; set; }
        public Uri Source { get; set; }
        public Uri MarkersSource { get; set; }
        public ICommand SelectedCommand { get; private set; }
        public event Action<VideoInfo> Selected;

        public void NotifySelected()
        {
            if (Selected != null)
            {
                Selected(this);
            }
        }
    }
}